package cn.zpcnet.zstring.utils.compare;

import java.util.Comparator;

/**
 * @author zpc
 * @version 1.0
 *   字符串比较工具类
 */
public class StringCompareUtil implements StringCompare {

    @Override
    public boolean compareLength(String strLeft, String strRight) {
        return (strLeft.length() - strRight.length()) > 0;
    }

    @Override
    public boolean compareContent(String strLeft, String strRight) {
        return strLeft.equals(strRight);
    }

    @Override
    public boolean compareContent(String strLeft, String strRight, Comparator<String> comparetor) {
        return false;
    }
}
